'use strict';
exports.main = async (event, context) => {
	console.log('event : ', event)
	const frvManager = uniCloud.getFacialRecognitionVerifyManager({
	    requestId: context.requestId
	})
	try {
		const result = await frvManager.getAuthResult({
			appId:"__UNI__2032A71",
			certifyId: event.certifyId,
		})
		return result
	} catch (e) {
		return { errCode: 500, message: '获取CertifyId失败' };
	}
};
